package com.sjb.sixteen_journey_backend.service;

import com.sjb.sixteen_journey_backend.common.R;
import com.sjb.sixteen_journey_backend.entity.MyTime;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 我的此刻表 服务类
 * </p>
 *
 * @author jcz
 * @since 2024-07-12
 */
public interface IMyTimeService extends IService<MyTime> {

    R addMyTime(MyTime myTime) ;
//    R addMyTime(MyTime myTime, ArrayList<MultipartFile> images) throws IOException;

    R<MyTime> getMyTimeById(Integer myTimeId,Boolean f);

    R<List<MyTime>> getAllMyTime();

    R<List<MyTime>> getAllMyTimeByUserId();
    R<List<MyTime>> getMyTimeByAnyUserId(Integer id);

    R deleteMyTimeById(Integer myTimeId);

    R<List<MyTime>> getOtherMyTime(String site);

    MyTime setCountAndFollow(MyTime myTime);
//    R deleteMyTimeById(Integer status,Integer myTimeId);


}
